package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 错误日志记录对象 api_error_logs
 * 
 * @author ruoyi
 * @date 2024-07-26
 */
public class ApiErrorLogs extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 接口Url */
    @Excel(name = "接口Url")
    private String interfaceName;

    /** 请求参数 */
    @Excel(name = "请求参数")
    private String parameters;

    /** 请求时间 */
    @Excel(name = "请求时间")
    private String requestTime;

    /** 错误状态码 */
    @Excel(name = "错误状态码")
    private Long statusCode;

    /** 错误日志信息 */
    @Excel(name = "错误日志信息")
    private String errorMessage;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setInterfaceName(String interfaceName) 
    {
        this.interfaceName = interfaceName;
    }

    public String getInterfaceName() 
    {
        return interfaceName;
    }
    public void setParameters(String parameters) 
    {
        this.parameters = parameters;
    }

    public String getParameters() 
    {
        return parameters;
    }
    public void setRequestTime(String requestTime) 
    {
        this.requestTime = requestTime;
    }

    public String getRequestTime() 
    {
        return requestTime;
    }
    public void setStatusCode(Long statusCode) 
    {
        this.statusCode = statusCode;
    }

    public Long getStatusCode() 
    {
        return statusCode;
    }
    public void setErrorMessage(String errorMessage) 
    {
        this.errorMessage = errorMessage;
    }

    public String getErrorMessage() 
    {
        return errorMessage;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("interfaceName", getInterfaceName())
            .append("parameters", getParameters())
            .append("requestTime", getRequestTime())
            .append("statusCode", getStatusCode())
            .append("errorMessage", getErrorMessage())
            .append("createTime", getCreateTime())
            .toString();
    }
}
